package com.didi.dididi.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @Data: 2020-05-07 11:19:55
 * @Pacakge: com.didi.dididi.component
 * @ClassName: Book
 * @Version: v1.0.0
 * @Author: dilili
 */
@Component
@ConfigurationProperties(prefix = "book")
public class BookPropertiesV2 {
    private String name;
    private int price;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
